package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.entity.Dish;
import com.itheima.reggie.entity.DishDto;

import java.util.List;

public interface DishService extends IService<Dish> {
    //新增菜品，同时插入菜品对应的口味数据，需要操作两张表：dish、dish_flavor
    public void saveWithFlavor(DishDto dishDto);

    DishDto getwithflavor(String id);

    void updatedish(DishDto dishDto);

    void updatestatus(List<Long> ids);

    void updatestatus2(List<Long> ids);

    void delectbyids(List<Long> ids);


}
